﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类EMPLOYEE_USER
     ///</summary>
     public class EMPLOYEE_USER
     {
         private int __ID= 0;
         private string __EMPLOYEE_NO="" ;
         private string __EMPLOYEE_ID="" ;
         private string __EMPLOYEE_PWD="" ;
         private string __EMPLOYEE_POWER="" ;
         private string __EMPLOYEE_OTHER_NO="" ;
         private string __LICENSE_NAME="" ;
         private string __LICENSE_ID="" ;
         private string __LICENSE_START_DATE="" ;
         private string __LICENSE_END_DATE="" ;
         private string __EMPLOYEE_NAME="" ;
         private string __EMPLOYEE_DEPART="" ;
         private string __EMPLOYEE_JOB="" ;
         private string __EMPLOYEE_ADDRESS="" ;
         private string __EMPLOYEE_TEL="" ;
         private string __EMPLOYEE_PHOTO="" ;
         private string __EMPLOYEE_CODE="" ;
         private string __EMPLOYEE_ID_NO="" ;
         private string __REG_DATE="" ;
         private string __REMARK="" ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public EMPLOYEE_USER()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("EMPLOYEE_NO",false);
             this.__Changed.Add("EMPLOYEE_ID",false);
             this.__Changed.Add("EMPLOYEE_PWD",false);
             this.__Changed.Add("EMPLOYEE_POWER",false);
             this.__Changed.Add("EMPLOYEE_OTHER_NO",false);
             this.__Changed.Add("LICENSE_NAME",false);
             this.__Changed.Add("LICENSE_ID",false);
             this.__Changed.Add("LICENSE_START_DATE",false);
             this.__Changed.Add("LICENSE_END_DATE",false);
             this.__Changed.Add("EMPLOYEE_NAME",false);
             this.__Changed.Add("EMPLOYEE_DEPART",false);
             this.__Changed.Add("EMPLOYEE_JOB",false);
             this.__Changed.Add("EMPLOYEE_ADDRESS",false);
             this.__Changed.Add("EMPLOYEE_TEL",false);
             this.__Changed.Add("EMPLOYEE_PHOTO",false);
             this.__Changed.Add("EMPLOYEE_CODE",false);
             this.__Changed.Add("EMPLOYEE_ID_NO",false);
             this.__Changed.Add("REG_DATE",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID = 0;
             this.__EMPLOYEE_NO = "" ;
             this.__EMPLOYEE_ID = "" ;
             this.__EMPLOYEE_PWD = "" ;
             this.__EMPLOYEE_POWER = "" ;
             this.__EMPLOYEE_OTHER_NO = "" ;
             this.__LICENSE_NAME = "" ;
             this.__LICENSE_ID = "" ;
             this.__LICENSE_START_DATE = "" ;
             this.__LICENSE_END_DATE = "" ;
             this.__EMPLOYEE_NAME = "" ;
             this.__EMPLOYEE_DEPART = "" ;
             this.__EMPLOYEE_JOB = "" ;
             this.__EMPLOYEE_ADDRESS = "" ;
             this.__EMPLOYEE_TEL = "" ;
             this.__EMPLOYEE_PHOTO = "" ;
             this.__EMPLOYEE_CODE = "" ;
             this.__EMPLOYEE_ID_NO = "" ;
             this.__REG_DATE = "" ;
             this.__REMARK = "" ;
             this.__Changed["ID"] = false;
             this.__Changed["EMPLOYEE_NO"] = false;
             this.__Changed["EMPLOYEE_ID"] = false;
             this.__Changed["EMPLOYEE_PWD"] = false;
             this.__Changed["EMPLOYEE_POWER"] = false;
             this.__Changed["EMPLOYEE_OTHER_NO"] = false;
             this.__Changed["LICENSE_NAME"] = false;
             this.__Changed["LICENSE_ID"] = false;
             this.__Changed["LICENSE_START_DATE"] = false;
             this.__Changed["LICENSE_END_DATE"] = false;
             this.__Changed["EMPLOYEE_NAME"] = false;
             this.__Changed["EMPLOYEE_DEPART"] = false;
             this.__Changed["EMPLOYEE_JOB"] = false;
             this.__Changed["EMPLOYEE_ADDRESS"] = false;
             this.__Changed["EMPLOYEE_TEL"] = false;
             this.__Changed["EMPLOYEE_PHOTO"] = false;
             this.__Changed["EMPLOYEE_CODE"] = false;
             this.__Changed["EMPLOYEE_ID_NO"] = false;
             this.__Changed["REG_DATE"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_NO]的数据
         /// </summary>
         public string EMPLOYEE_NO
         {
              set{ __EMPLOYEE_NO = value.Replace("'","’"); __Changed["EMPLOYEE_NO"] = true;}
              get{return __EMPLOYEE_NO;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_ID]的数据
         /// </summary>
         public string EMPLOYEE_ID
         {
              set{ __EMPLOYEE_ID = value.Replace("'","’"); __Changed["EMPLOYEE_ID"] = true;}
              get{return __EMPLOYEE_ID;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_PWD]的数据
         /// </summary>
         public string EMPLOYEE_PWD
         {
              set{ __EMPLOYEE_PWD = value.Replace("'","’"); __Changed["EMPLOYEE_PWD"] = true;}
              get{return __EMPLOYEE_PWD;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_POWER]的数据
         /// </summary>
         public string EMPLOYEE_POWER
         {
              set{ __EMPLOYEE_POWER = value.Replace("'","’"); __Changed["EMPLOYEE_POWER"] = true;}
              get{return __EMPLOYEE_POWER;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_OTHER_NO]的数据
         /// </summary>
         public string EMPLOYEE_OTHER_NO
         {
              set{ __EMPLOYEE_OTHER_NO = value.Replace("'","’"); __Changed["EMPLOYEE_OTHER_NO"] = true;}
              get{return __EMPLOYEE_OTHER_NO;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_NAME]的数据
         /// </summary>
         public string LICENSE_NAME
         {
              set{ __LICENSE_NAME = value.Replace("'","’"); __Changed["LICENSE_NAME"] = true;}
              get{return __LICENSE_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_ID]的数据
         /// </summary>
         public string LICENSE_ID
         {
              set{ __LICENSE_ID = value.Replace("'","’"); __Changed["LICENSE_ID"] = true;}
              get{return __LICENSE_ID;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_START_DATE]的数据
         /// </summary>
         public string LICENSE_START_DATE
         {
              set{ __LICENSE_START_DATE = value.Replace("'","’"); __Changed["LICENSE_START_DATE"] = true;}
              get{return __LICENSE_START_DATE;}
         }
         /// <summary>
         ///设置或获取类中的[LICENSE_END_DATE]的数据
         /// </summary>
         public string LICENSE_END_DATE
         {
              set{ __LICENSE_END_DATE = value.Replace("'","’"); __Changed["LICENSE_END_DATE"] = true;}
              get{return __LICENSE_END_DATE;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_NAME]的数据
         /// </summary>
         public string EMPLOYEE_NAME
         {
              set{ __EMPLOYEE_NAME = value.Replace("'","’"); __Changed["EMPLOYEE_NAME"] = true;}
              get{return __EMPLOYEE_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_DEPART]的数据
         /// </summary>
         public string EMPLOYEE_DEPART
         {
              set{ __EMPLOYEE_DEPART = value.Replace("'","’"); __Changed["EMPLOYEE_DEPART"] = true;}
              get{return __EMPLOYEE_DEPART;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_JOB]的数据
         /// </summary>
         public string EMPLOYEE_JOB
         {
              set{ __EMPLOYEE_JOB = value.Replace("'","’"); __Changed["EMPLOYEE_JOB"] = true;}
              get{return __EMPLOYEE_JOB;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_ADDRESS]的数据
         /// </summary>
         public string EMPLOYEE_ADDRESS
         {
              set{ __EMPLOYEE_ADDRESS = value.Replace("'","’"); __Changed["EMPLOYEE_ADDRESS"] = true;}
              get{return __EMPLOYEE_ADDRESS;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_TEL]的数据
         /// </summary>
         public string EMPLOYEE_TEL
         {
              set{ __EMPLOYEE_TEL = value.Replace("'","’"); __Changed["EMPLOYEE_TEL"] = true;}
              get{return __EMPLOYEE_TEL;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_PHOTO]的数据
         /// </summary>
         public string EMPLOYEE_PHOTO
         {
              set{ __EMPLOYEE_PHOTO = value.Replace("'","’"); __Changed["EMPLOYEE_PHOTO"] = true;}
              get{return __EMPLOYEE_PHOTO;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_CODE]的数据
         /// </summary>
         public string EMPLOYEE_CODE
         {
              set{ __EMPLOYEE_CODE = value.Replace("'","’"); __Changed["EMPLOYEE_CODE"] = true;}
              get{return __EMPLOYEE_CODE;}
         }
         /// <summary>
         ///设置或获取类中的[EMPLOYEE_ID_NO]的数据
         /// </summary>
         public string EMPLOYEE_ID_NO
         {
              set{ __EMPLOYEE_ID_NO = value.Replace("'","’"); __Changed["EMPLOYEE_ID_NO"] = true;}
              get{return __EMPLOYEE_ID_NO;}
         }
         /// <summary>
         ///设置或获取类中的[REG_DATE]的数据
         /// </summary>
         public string REG_DATE
         {
              set{ __REG_DATE = value.Replace("'","’"); __Changed["REG_DATE"] = true;}
              get{return __REG_DATE;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
